<script type="text/javascript" src="${base}/scripts/kcgl/zksq_detail.js"></script>
<div id="zkdDetailForm" method="post" class="easyui-tabs" fit="true" detail='true'>
    <input name="zkd.id" type="hidden" value="${(zkd.id)!''}"/>
    <input name="zkd.zt" type="hidden" value="${(zkd.zt)!''}"/>

    <div title="转库信息" style="height: 100%;overflow-y: auto">
        <table style="width: 99%;margin: 5px" class="tb tab-t t-bor">
            <col width="15%"/>
            <col width="35%"/>
            <col width="15%"/>
            <col width="35%"/>
            <tr>
                <th>转库单号：</th>
                <td>
                ${(zkd.zkdh)!}
                </td>
                <th>配送单号：</th>
                <td>
                ${(zkd.psd.psdh)!}
                </td>
            </tr>
            <tr>
                <th>公司名称：</th>
                <td>
                ${(zkd.sqgs.jc)!}
                </td>
                <th>状&nbsp;&nbsp;&nbsp;&nbsp;态：</th>
                <td>
                <#if (zkd.type)??&&(zkd.type)=='bgzk'>保供转库<#elseif (zkd.type)??&&(zkd.type)=='zczk'>正常转库</#if>
                </td>
            </tr>
            <tr>
                <th>转出仓库：</th>
                <td>
                ${(zkd.zcck.mc)!}
                </td>
                <th>转入仓库：</th>
                <td>
                ${(zkd.zrck.mc)!}
                </td>
            </tr>
            <tr>
                <th>需要配送：</th>
                <td>
                <#if (zkd.xyps)??&&(zkd.xyps)>是<#elseif (zkd.xyps)??&&!(zkd.xyps)>否</#if>
                </td>
                <th>需要验收：</th>
                <td>
                <#if (zkd.xyys)??&&(zkd.xyys)>是<#elseif (zkd.xyys)??&&!(zkd.xyys)>否</#if>
                </td>
            </tr>
            <tr>
                <th>物流商：</th>
                <td>
                ${(zkps.wls.jc)!}
                </td>
                <th>送货车号：</th>
                <td>
                ${(zkps.shch)!}
                </td>
            </tr>
            <tr>
                <th>驾驶员/电话：</th>
                <td>
                ${(zkps.jsy)!}/${(zkps.lxdh)!}
                </td>
                <th>配送人/时间：</th>
                <td>
                ${(zkps.createUser.xm)!}/${(zkps.dateCreated)!}
                </td>
            </tr>
            <tr>
                <th>出库人：</th>
                <td>
                ${(zkd.ckr.xm)!}
                </td>
                <th>出库日期：</th>
                <td>
                ${(zkd.zkrq)!}
                </td>
            </tr>
            <tr>
                <th>制单人：</th>
                <td>
                ${(zkd.createUser.xm)!}
                </td>
                <th>申请日期：</th>
                <td>
                ${(zkd.dateCreated)!}
                </td>
            </tr>
        </table>
    </div>
    <div title="转库明细">
        <table id="zkd_mx_table">
        </table>
    </div>
    <div title="费用明细">
        <table id="zkd_zkdfy_table" class="easyui-datagrid" url="${base}/kcgl/zksq/zkdgl_zkfy?zkdId=${(zkd.id)!-1}"
               rownumbers="true" fit="true" fitColumns="true" showFooter="true">
            <thead>
            <tr>
                <th data-options="field:'sydw.qc',width:50,align: 'center'">收益单位</th>
                <th data-options="field:'fylb.fykmjc',width:50,align: 'center'">费用类别</th>
                <th data-options="field:'jfsl',width:30,formatter:formatSlForHtml,align: 'right'">计费数量</th>
                <th data-options="field:'dj',width:30,formatter:formatJeForHtml,align: 'right'">单价(元)</th>
                <th data-options="field:'je',width:30,formatter:formatJeForHtml,align: 'right'">金额(元)</th>
                <th data-options="field:'bz',width:50,align: 'center'">备注</th>
            </tr>
            </thead>
        </table>
    </div>
</div>